package com.lmt_12;

import java.io.File;
import java.io.IOException;

public class FileTest2 {
    public static void main(String[] args) throws Exception {
        File file1 = new File("/home/rivotek/桌面/lmt/m.txt");
        System.out.println(file1.createNewFile());

        File file2 = new File("/home/rivotek/桌面/lmt/aaa");
        System.out.println(file2.mkdir());

        File file = new File("/home/rivotek/桌面/lmt/m/n");
        System.out.println(file.mkdir());
        System.out.println(file.mkdirs());
        System.out.println(file.delete());
    }

}
